import service from "..";

export function getSwiper(){
    return service({
        method:"GET",
        url:"/banner?type=2"
    })
}

export function getMusicList(){
    return service({
        method:'GET',
        url:"/personalized?limit=10"
    })
}
//搜素歌曲
export function getSearchMusic(data){
    console.log(data)
    return service({
        method:'GET',
        url:`/search?keywords=${data}`
    })
}
//登录发送验证码
export function getphoneLogin(data){
    console.log(data)
    return service({
        method:'GET',
        url:`/captcha/sent?phone=${data}`
    })
}
//验证验证码
export function getcodeLogin(data){
    console.log(data)
    return service({
        method:'GET',
        url:`/captcha/verify?phone=${data.phone}&captcha=${data.code}`
    })
}
//视频的播放
export function getMusicMv(data){
    console.log(data)
    return service({
        method:'GET',
        url:`/mv/url?id=${data}`
    })
}
//获取视频详情
export function getMvdetail(data){
    console.log(data)
    return service({
        method:'GET',
        url:`/mv/detail?mvid=${data}`
    })
}